package com.ymatou.paygetway.parameter;

import java.util.Map;

import org.apache.commons.beanutils.BeanUtils;

import com.ymt.base.BaseBean;

public class ApplePayNotifyBean extends BaseBean {
	private String bizType;// 000201
	private String orderId;// 17050410190438490
	private String traceNo;// 78591936
	private Integer settleAmt;// 101
	private String settleCurrencyCode;// 156
	private String txnType;// 01
	private String queryId;// 78591936
	private String accessType;// 0
	private String txnTime;// 20170504101911
	private String payCardType;// 01
	private String txnSubType;// 01
	private String encoding;// UTF-8
	private String version;// 5.0.0
	private String respMsg;// paysuccess
	private String merId;// 308310053994237
	private String currencyCode;// 156
	private String respCode;// 00
	private String signMethod;// 01
	private Integer txnAmt;// 101
	private String signature;

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getBizType() {
		return bizType;
	}

	public void setBizType(String bizType) {
		this.bizType = bizType;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getTraceNo() {
		return traceNo;
	}

	public void setTraceNo(String traceNo) {
		this.traceNo = traceNo;
	}

	public Integer getSettleAmt() {
		return settleAmt;
	}

	public void setSettleAmt(Integer settleAmt) {
		this.settleAmt = settleAmt;
	}

	public String getSettleCurrencyCode() {
		return settleCurrencyCode;
	}

	public void setSettleCurrencyCode(String settleCurrencyCode) {
		this.settleCurrencyCode = settleCurrencyCode;
	}

	public String getTxnType() {
		return txnType;
	}

	public void setTxnType(String txnType) {
		this.txnType = txnType;
	}

	public String getQueryId() {
		return queryId;
	}

	public void setQueryId(String queryId) {
		this.queryId = queryId;
	}

	public String getAccessType() {
		return accessType;
	}

	public void setAccessType(String accessType) {
		this.accessType = accessType;
	}

	public String getTxnTime() {
		return txnTime;
	}

	public void setTxnTime(String txnTime) {
		this.txnTime = txnTime;
	}

	public String getPayCardType() {
		return payCardType;
	}

	public void setPayCardType(String payCardType) {
		this.payCardType = payCardType;
	}

	public String getTxnSubType() {
		return txnSubType;
	}

	public void setTxnSubType(String txnSubType) {
		this.txnSubType = txnSubType;
	}

	public String getEncoding() {
		return encoding;
	}

	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getRespMsg() {
		return respMsg;
	}

	public void setRespMsg(String respMsg) {
		this.respMsg = respMsg;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getCurrencyCode() {
		return currencyCode;
	}

	public void setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
	}

	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	public String getSignMethod() {
		return signMethod;
	}

	public void setSignMethod(String signMethod) {
		this.signMethod = signMethod;
	}

	public Integer getTxnAmt() {
		return txnAmt;
	}

	public void setTxnAmt(Integer txnAmt) {
		this.txnAmt = txnAmt;
	}
	 /**
     * 实体类生成map
     * @return
	 * @throws Exception 
     */
    public Map<String, String> genMap() throws Exception{
        try {
            Map<String, String> map = BeanUtils.describe(this);
            if(map.containsKey("class")){
                map.remove("class");
            }
            return map;
        }catch(Exception ex){
            throw new Exception(this.getClass().getSimpleName() + ".genMap exception", ex);
        }
    }

}
